<html>
<head>
<title>Login</title>

</head>
<body>
<form method="POST" action="<?=site_url("userpanel/addrule")?>">
<table>
<tr>
<td>Rule:</td>
<td><input type="text" name="rule"></input></td>
</tr>

<tr>
<td>
<select name="rules">
<?php 
foreach($rules as $rule):
?>
	<option value="<?=$rule->id?>"><?=$rule->rule?></option>
<?php 
endforeach;
?>
</select>
</td>
<td>&nbsp</td>
</tr>

<tr>
<td>
&nbsp;
</td>
<td>
<input type="submit" name="submit" value="Save After"></input>
</td>
</tr>

</table>
</form>

</body>
</html>